<script setup lang="ts">
import '@/plugins/echarts'

const { caches: keepAliveCaches } = useAppSDK().keepAlive
</script>

<template>
  <div class="app-container">
    <ElConfigProvider>
      <RouterView v-slot="{ Component: routerComp }">
        <KeepAlive :include="keepAliveCaches">
          <Component :is="routerComp" />
        </KeepAlive>
      </RouterView>
    </ElConfigProvider>
  </div>
</template>

<style lang="scss" scoped>
.app-container {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
</style>
